<?php
/*=============================================================================
|| ##################################################################
||	phpFoX Konsort
|| ##################################################################
||
||	Copyright		: (C) 2005-2007 PHPFOX Limited a Reality Fox Creation
||	Contact			: info@phpfox.com
||
||	- phpFoX and all of its source code and files are protected by Copyright Laws.
||
||	- The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.).
||
||	- You may also not remove this copyright screen which shows the copyright information and credits for phpFoX (RealityFOX Creations).
||
||	- phpFoX Konsort is NOT a FREE software - http://www.phpfox.com/license/
||
|| ##################################################################
=============================================================================*/

/* $File: ./include/modules/Site/classes/PhpFox_ComponentContent.class.php, $Author:  $ */



/** Component for returning content
 * @version $Id: PhpFox_ComponentContent.class.php 46 2007-12-14 23:12:21Z phpfoxsv $
 * @package module.site
 *
 */
class PhpFox_Mod_Site_ComponentContent extends BaseComponent
{
    function process()
    {
	  	$sFile = $this->_aParams['file'];
	  	$oLang = &App::getLanguage();
	  	if ( App::isStaff() )
	  	{
			print '<div style="text-align:right; font-size:10pt;" class="color">
			[ <a href="'. App::makeUrl('admin.language.phrases', array('lreturn' => 'index', 'content' => 'true', 'csearch' => str_replace("_", "-", $sFile))) .'">'. App::format('Mod_Site.edit') .'</a> ]
			</div>
			';
		}
	  	return $oLang->getContent($sFile);
    }
}
?>